home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / networke / acm-4.7-l / acm-4.7-Linux_patch
Text File  |  1995-06-01  |  3KB  |  131 lines

  1. Hi, here's a little patch to make acm-4.7 compile under Linux.
  2. It works for me, I hope it will for you but I'm not responsible for
  3. any damge this could do etc.
  4.  
  5. just use patch -p0 < 'thispatch'
  6. while you're in the acm parent source directory (ie ls => acm-4.7)
  7.  
  8. Have fun!
  9.  
  10.             Jeremie PETIT
  11.             petit@aurora.unice.fr
  12.  
  13. Note: I've sent this patch to the author, but he didn't reply, so I put it
  14. here.
  15.  
  16. ------------------ patch file --------------------------------(snip)---
  17.  
  18. diff -c -r acm-4.7/V/lib/VReadObject.c acm-4.7+/V/lib/VReadObject.c
  19. *** acm-4.7/V/lib/VReadObject.c    Tue Mar  1 19:56:51 1994
  20. --- acm-4.7+/V/lib/VReadObject.c    Fri May 26 19:28:34 1995
  21. ***************
  22. *** 116,122 ****
  23. --- 116,124 ----
  24.   {
  25.       register int    c, state = STATE_INITIAL, seen_dot = 0;
  26.       register struct keyword_info    *q;
  27. + #ifndef linux
  28.       extern double atof();
  29. + #endif
  30.   
  31.       token_length = 0;
  32.   
  33. diff -c -r acm-4.7/src/acm.c acm-4.7+/src/acm.c
  34. *** acm-4.7/src/acm.c    Fri Jan 28 15:24:37 1994
  35. --- acm-4.7+/src/acm.c    Fri May 26 21:16:44 1995
  36. ***************
  37. *** 40,46 ****
  38.   
  39.   jmp_buf    dead;
  40.   
  41. ! #ifdef SIGVOID
  42.   void
  43.   #endif
  44.   done () {
  45. --- 40,46 ----
  46.   
  47.   jmp_buf    dead;
  48.   
  49. ! #if defined(SIGVOID) || defined(linux)
  50.   void
  51.   #endif
  52.   done () {
  53. ***************
  54. *** 63,69 ****
  55. --- 63,73 ----
  56.   #else
  57.       int    pid;
  58.   #endif
  59. + #ifndef linux
  60.       struct passwd    *pwent, *getpwuid();
  61. + #else
  62. +     struct passwd   *pwent;
  63. + #endif
  64.       struct sockaddr_in sin;
  65.       struct hostent    *h = (struct hostent *) NULL;
  66.   
  67. diff -c -r acm-4.7/src/inventory.c acm-4.7+/src/inventory.c
  68. *** acm-4.7/src/inventory.c    Tue Mar  1 19:57:21 1994
  69. --- acm-4.7+/src/inventory.c    Fri May 26 19:29:36 1995
  70. ***************
  71. *** 411,417 ****
  72. --- 411,419 ----
  73.   {
  74.       register int    c, state = STATE_INITIAL;
  75.       register struct keyword_info    *q;
  76. + #ifndef linux
  77.       extern double atof();
  78. + #endif
  79.   
  80.       token_length = 0;
  81.   
  82. diff -c -r acm-4.7/src/kill-acms acm-4.7+/src/kill-acms
  83. *** acm-4.7/src/kill-acms    Tue Nov  2 22:58:01 1993
  84. --- acm-4.7+/src/kill-acms    Fri May 26 19:09:29 1995
  85. ***************
  86. *** 1,6 ****
  87. --- 1,8 ----
  88.   #! /bin/sh
  89.   if [ "`uname`" = "SunOS" ]; then
  90.     pscmd="ps -aux"
  91. + elif [ "`uname`" = "Linux" ]; then
  92. +   pscmd="ps -aux"
  93.   else
  94.     pscmd="ps -ef"
  95.   fi
  96. diff -c -r acm-4.7/src/manifest.h acm-4.7+/src/manifest.h
  97. *** acm-4.7/src/manifest.h    Tue Oct  4 16:35:52 1994
  98. --- acm-4.7+/src/manifest.h    Fri May 26 16:32:57 1995
  99. ***************
  100. *** 32,38 ****
  101.   #ifdef hpux
  102.   #define sigvec sigvector
  103.   #else
  104. ! #ifdef SVR4
  105.   #define sigvec                sigaction
  106.   #define sv_handler    sa_handler
  107.   #define sv_mask               sa_mask
  108. --- 32,38 ----
  109.   #ifdef hpux
  110.   #define sigvec sigvector
  111.   #else
  112. ! #if defined(SVR4) || defined(linux)
  113.   #define sigvec                sigaction
  114.   #define sv_handler    sa_handler
  115.   #define sv_mask               sa_mask
  116. diff -c -r acm-4.7/src/server.c acm-4.7+/src/server.c
  117. *** acm-4.7/src/server.c    Thu Sep 29 17:31:18 1994
  118. --- acm-4.7+/src/server.c    Fri May 26 19:30:38 1995
  119. ***************
  120. *** 60,66 ****
  121. --- 60,68 ----
  122.   int sdebug = 1;
  123.   int listen_socket;
  124.   char *sceneFile = (char *) NULL;
  125. + #ifndef linux
  126.   extern double atof();
  127. + #endif
  128.   
  129.   void parseinfo (s, a, b, c)
  130.   char *s, *a, *b, *c; {
  131.